<div class="content">
    <div class="div-top">
        <span style="font-size: 20px;float:left;">{{menu_name}}</span>
        <div style="float:right;">
            <button ng-repeat="but in buttons" ng-click="clickBtn(but.event)" class="btn btn-{{but.style}}"><i
                    class="iconfont {{but.img}}"></i>&nbsp;{{but.name}}
            </button>
            <button ng-click="downloadTemplate()" type="button" class="btn btn-success">
                <i class="iconfont icon-project-file"></i> 下载模板
            </button>
            <button ng-click="import()" type="button" class="btn btn-primary">
                <i class="iconfont icon-Import-01"></i> 导入
            </button>
            <button ng-click="add()" type="button" class="btn btn-primary">
                <i class="iconfont icon-add"></i> 添加
            </button>
            <button ng-click="edit()" class="btn btn-warning">
                <i class="iconfont icon-update"></i> 修改
            </button>
            <button ng-click="remove()" class="btn btn-danger">
                <i class="iconfont icon-delete"></i> 删除
            </button>
        </div>
    </div>

    <form class="div-find form-inline">
        <div class="form-group">
            <label class="form-label">年级：</label>
            <input type="text" ng-model="form.year" class="form-control">
        </div>
        <div class="form-group">
            <label class="form-label">招生代码：</label>
            <input type="text" ng-model="form.recruit_code" class="form-control">
        </div>
        <div class="form-group">
            <label class="form-label">姓名：</label>
            <input type="text" ng-model="form.name" class="form-control">
        </div>
        <div class="form-group">
            <label class="form-label">报道状态：</label>
            <select class="form-control" ng-model="form.bd_status" >
                <option value="">==请选择==</option>
                <option value="0">==未报道==</option>
                <option value="1">==已报道==</option>
            </select>
        </div>
        <button ng-click="select()" type="submit" class="btn btn-secondary"><i class="iconfont icon-search"></i>&nbsp;查询
        </button>
    </form>

    <div class="div-table">
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th class="table-th-checkbox"><input type="checkbox" ng-click="checkAll($event.target)"/></th>
                <th column="id" class="sorting" ng-click="order($event.target)">编号</th>
                <th column="files_area" class="sorting" ng-click="order($event.target)">投档录取区</th>
                <th column="application_num" class="sorting" ng-click="order($event.target)">报名号</th>
                <th column="name" class="sorting" ng-click="order($event.target)">姓名</th>
                <th column="sex" class="sorting" ng-click="order($event.target)">性别</th>
                <th column="sfzjh" class="sorting" ng-click="order($event.target)">证件号码</th>
                <th column="recruit_code" class="sorting" ng-click="order($event.target)">招生代码</th>
                <th column="volunteer_name" class="sorting" ng-click="order($event.target)">志愿名称</th>
                <th column="admission_num" class="sorting" ng-click="order($event.target)">录取总分</th>
                <th column="bd_status" class="sorting" ng-click="order($event.target)">确认报道</th>
            </tr>
            </thead>
            <tbody ng-switch on="page.current_num">
            <tr ng-switch-when="0">
                <td colspan="100">查询无记录</td>
            </tr>
            <tr ng-repeat="row in rows" ng-click="optData($event.currentTarget)">
                <td>
                    <input type="checkbox" name="dataPk" value="{{row.id}}"/>
                </td>
                <td>{{row.id}}</td>
                <td>{{row.files_area}}</td>
                <td>{{row.application_num}}</td>
                <td>{{row.name}}</td>
                <td>{{row.sex}}</td>
                <td>{{row.sfzjh}}</td>
                <td>{{row.recruit_code}}</td>
                <td>{{row.volunteer_name}}</td>
                <td>{{row.admission_num}}</td>
                <td ng-switch on="row.bd_status">
                    <span ng-switch-when="0">未报道</span>
                    <span ng-switch-when="1">已报道</span>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
    <div ng-include="'plugin/frame/3.0.1/html/page.html'" class="div-page"></div>
</div>